home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 20 code / NetWare Development / NLM Client Example / LServerChooser.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-03  |  1.3 KB  |  55 lines  |  [TEXT/MPCC]

  1. #pragma once
  2. #include <AppleTalk.h>
  3. #include <LDialogBox.h>
  4. #include <LListener.h>
  5. #include <LStdControl.h>
  6. #include <LCaption.h>
  7. #include <LEditField.h>
  8. #include <LListBox.h>
  9. #include "NetLister.h"
  10. #include "LServerActions.h"
  11.  
  12. typedef AddrBlock ATAddress;
  13.  
  14. class    LServerChooser : public LDialogBox,
  15.                      public LListener, public LPeriodical {
  16. public:
  17.     static LServerChooser*    CreateServerChooserStream(LStream *inStream);
  18.  
  19.                     LServerChooser();
  20.                     LServerChooser(SWindowInfo &inWindowInfo);
  21.                     LServerChooser(ResIDT inWINDid, Uint32 inAttributes,
  22.                                 LCommander *inSuperCommander);
  23.                     LServerChooser(LStream *inStream);
  24.     virtual            ~LServerChooser();
  25.                 
  26.     virtual void    ListenToMessage(MessageT inMessage, void *ioParam);
  27.     virtual void     DoSetupServerChooser();
  28.     virtual void    DoSetupZoneList();
  29.     virtual void    RefreshZoneList();
  30.     virtual void    DoSetupServerList();
  31.     virtual void    RefreshServerList();
  32.     virtual LServerActions     *DoOKHit();
  33.  
  34.     virtual void    SpendTime(const EventRecord &inMacEvent);
  35. private:
  36.     LListBox     *mZonesList;
  37.     LListBox    *mServersList;
  38.     LStdButton    *mOKButton;
  39.     LStdButton    *mCancelButton;
  40.     
  41.     ZoneElem     *zoneList;
  42.     NBPElem     *serverList;
  43.     short         numZones;
  44.     short         numServers;
  45.     
  46.     Str32         localZone;
  47.     Str32        selectedZone;
  48.     Str255        serverName;
  49.     
  50.     int            mZoneCounter, mServerCounter;
  51.     
  52. };
  53.  
  54. void FindServerAddress(Str32 name, Str32 zone, ATAddress *addr);
  55.